package
{
	import flash.display.BitmapData;
	
	import starling.display.Image;
	import starling.display.Sprite;
	import starling.events.Event;
	import starling.textures.Texture;
	
	public class AppRoot extends Sprite
	{
		private var _bmd:BitmapData;
		private var _img:Image;
		public function AppRoot()
		{
			super();
			addEventListener(Event.ADDED_TO_STAGE, initialize);
		}
		public function initialize():void
		{
			_bmd = new BitmapData(stage.stageWidth, stage.stageHeight, false);
			_img = new Image( starling.textures.Texture.fromBitmapData(_bmd, false) );
			addChild(_img);
		}
		
	}
}